﻿using SIE.SCADA.ZemtDemo.ViewModel;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Navigation;
using System.Windows.Shapes;

namespace SIE.SCADA.ZemtDemo.View
{
    /// <summary>
    /// EquipmentView.xaml 的交互逻辑
    /// </summary>
    public partial class ManualView : UserControl
    {
        private ManualViewModel viewModel;
        public ManualView()
        {
            InitializeComponent();
            viewModel = new ManualViewModel();
        }


        private void GetWorkInfo_Click(object sender, RoutedEventArgs e)
        {
            //viewModel.GetWorkInfobByDatetime(WorkDatetime.Text,Linename.Text);
        }

        private void GetProcess_Click(object sender, RoutedEventArgs e)
        {
            
        }

        private void GetUserInfo_Click(object sender, RoutedEventArgs e)
        {
            viewModel.GetUserInfoByUserCode(UserCode.Text, UserLine.Text);
        }

        private void PostWorkFinishReport_Click(object sender, RoutedEventArgs e)
        {
            viewModel.PostWorkFinishReport(WorkID.Text,SN.Text);
        }

        private void GetEquipment_Click(object sender, RoutedEventArgs e)
        {
            viewModel.GetEquipmentByCode(EquipmentCode.Text, EquipmentLine.Text);
        }
    }
}
